import { RouteRecordRaw } from 'vue-router'
import Icons from './svgs'
import Trees from './tree'
import Excal from './excel'
import Form from './form'
import Dialog from './dialog'
const allUserRoute: Array<RouteRecordRaw> = [
  {
    path: '/ex_table',
    name: 'ExTable',
    children: [
      {
        path: 'default_table',
        name: 'DefaultTable',
        component: () => import('@/views/ExTable/defaultTable/index.vue'),
        meta: {
          icon: 'Calendar',
          title: 'router.ex_table.default_table'
        }
      },
      {
        path: 'row_sort_table',
        name: 'RowSortTable',
        component: () => import('@/views/ExTable/sorTable/row_sort_table.vue'),
        meta: {
          icon: 'Refrigerator',
          title: 'router.ex_table.row_sort_table'
        }
      },
      {
        path: 'column_sort_table',
        name: 'ColumnSortTable',
        component: () => import('@/views/ExTable/sorTable/column_sort_table.vue'),
        meta: {
          icon: 'QuartzWatch',
          title: 'router.ex_table.column_sort_table'
        }
      },
      {
        path: 'column_row_sort_table',
        name: 'ColumnRowSortTable',
        component: () => import('@/views/ExTable/sorTable/column_row_sort_table.vue'),
        meta: {
          icon: 'Paperclip',
          title: 'router.ex_table.column_row_sort_table'
        }
      }
    ],
    meta: {
      icon: 'Box',
      title: 'router.ex_table.index'
    }
  },
  {
    path: '/demo',
    name: 'Demo',
    children: [
      {
        path: 'index',
        name: 'DemoIndex',
        component: () => import('@/views/Demo'),
        meta: {
          icon: 'Stopwatch',
          title: 'demo'
        }
      },
      {
        path: 'demo1',
        name: 'demo1',
        component: () => import('@/views/Demo/Demo'),
        meta: {
          icon: 'Suitcase',
          title: 'demo1'
        }
      }
    ],
    meta: {
      icon: 'Crop',
      title: 'Demo'
    }
  },
  ...Trees,
  ...Icons,
  ...Excal,
  ...Form,
  ...Dialog
]

export default allUserRoute
